package com.glorystone.ins.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;

import java.time.LocalDateTime;

public @Data class SysRole {

    private Long tid;

    private String name;

    private Long departmentId;

    private String departmentName;

    private Long roleTypeId;

    private String roleTypeName;

    private Integer roleLevel;

    private String authIds;

    private Long createBy;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime createTime;

    private Long updateBy;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime updateTime;

    private Integer delFlag;

    private Integer status;
}